import SvgIcon from './SvgIcon/icon-index.vue'
import pagination from './Pagination/pagination-index.vue'
// import type { Component } from 'vue'

// 全局对象
const allGloablComponent = {
  SvgIcon,
  pagination,
}

// 对外暴露插件对象
export default {
  // 务必叫做 install 方法
  install(app) {
    Object.keys(allGloablComponent).forEach((key) => {
      app.component(key, allGloablComponent[key])
    })
  },
}
